package kr.hkit.powerjava.chapter6.work;

import java.util.Scanner;

public class programming4 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		int a, b, c;
		System.out.println("정수를 입력하시오.");
		a = input.nextInt();
		System.out.println("정수를 입력하시오.");
		b = input.nextInt();
		System.out.println("정수를 입력하시오.");
		c = input.nextInt();
		
		if (a < b){
			if (a < c)
				System.out.println(a);
			else if( b > c) 
				System.out.println(c);
		}
		else if (b < c)
			System.out.println(b);
		else
			System.out.println(c);
		
				
	}

}
